
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: class Resource</title>
</head><body bgcolor="#f0f0f8">
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>A&nbsp;class&nbsp;for&nbsp;interacting&nbsp;with&nbsp;a&nbsp;resource.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl>

<dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns&nbsp;text&nbsp;translations&nbsp;from&nbsp;one&nbsp;language&nbsp;to&nbsp;another.<br>
&nbsp;<br>
Args:<br>
&nbsp;&nbsp;target:&nbsp;string,&nbsp;The&nbsp;target&nbsp;language&nbsp;into&nbsp;which&nbsp;the&nbsp;text&nbsp;should&nbsp;be&nbsp;translated&nbsp;(required)<br>
&nbsp;&nbsp;cid:&nbsp;string,&nbsp;The&nbsp;customization&nbsp;id&nbsp;for&nbsp;translate&nbsp;(repeated)<br>
&nbsp;&nbsp;format:&nbsp;string,&nbsp;The&nbsp;format&nbsp;of&nbsp;the&nbsp;text<br>
&nbsp;&nbsp;&nbsp;&nbsp;Allowed&nbsp;values<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;html&nbsp;-&nbsp;Specifies&nbsp;the&nbsp;input&nbsp;is&nbsp;in&nbsp;HTML<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text&nbsp;-&nbsp;Specifies&nbsp;the&nbsp;input&nbsp;is&nbsp;in&nbsp;plain&nbsp;textual&nbsp;format<br>
&nbsp;&nbsp;q:&nbsp;string,&nbsp;The&nbsp;text&nbsp;to&nbsp;translate&nbsp;(required)&nbsp;(repeated)<br>
&nbsp;&nbsp;source:&nbsp;string,&nbsp;The&nbsp;source&nbsp;language&nbsp;of&nbsp;the&nbsp;text<br>
&nbsp;<br>
Returns:<br>
&nbsp;&nbsp;An&nbsp;object&nbsp;of&nbsp;the&nbsp;form<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;"translations":&nbsp;[&nbsp;#&nbsp;Translations&nbsp;contains&nbsp;list&nbsp;of&nbsp;translation&nbsp;results&nbsp;of&nbsp;given&nbsp;text<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"detectedSourceLanguage":&nbsp;"A&nbsp;String",&nbsp;#&nbsp;Detected&nbsp;source&nbsp;language&nbsp;if&nbsp;source&nbsp;parameter&nbsp;is&nbsp;unspecified.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"translatedText":&nbsp;"A&nbsp;String",&nbsp;#&nbsp;The&nbsp;translation.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<br>
&nbsp;&nbsp;&nbsp;&nbsp;],<br>
&nbsp;&nbsp;}</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table>
</body></html>